package com.zzzy.sys.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * 菜单权限
 *
 * @author fc
 * @since 2024-04-22
 */
@Getter
@Setter
@TableName("sys_menu")
@Schema(name = "Menu", description = "菜单权限")
public class Menu {

    @Schema(description = "菜单ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "菜单名称")
    @TableField("name")
    private String name;

    @Schema(description = "父菜单ID")
    @TableField("parent_id")
    private Long parentId;

    @Schema(description = "菜单类型（0:一级菜单; 1:子菜单:2:按钮权限）")
    @TableField("menu_type")
    private Integer menuType;

    @Schema(description = "权限标识")
    @TableField("perms")
    private String perms;

    @Schema(description = "菜单图标")
    @TableField("icon")
    private String icon;

    @Schema(description = "备注")
    @TableField("memo")
    private String memo;
}
